package com.wxmit.base.enums;

import lombok.Getter;

import java.util.concurrent.TimeUnit;

/**
 * @author ：HuangXiong
 * @date ：Created in 2020/12/20 14:18
 * @description：redis key 枚举
 * @modified By：1.0
 * @version:
 */
@Getter
public enum RedisKeyEnum {

    /**
     *  例
     */
   // TEST("one:tow",24L, TimeUnit.HOURS),


    ;

    private final String key;
    private final TimeUnit unit;
    private final Long time;

    RedisKeyEnum(String key, Long time, TimeUnit unit){
        this.key = key;
        this.time = time;
        this.unit = unit;
    }
}
